<?php
    $host = "localhost";
    $DB_username = "root";
    $DB_password = "root";
    $DB_Name = "cms";

    $conn_DB = mysqli_connect($host, $DB_username, $DB_password, $DB_Name);
    if(!$conn_DB){
        die("<script>alert('数据库连接失败！');history.go(-1);</script>");
    }

    mysqli_query($conn_DB, "SET NAMES UTF8");